<?php

    $maintable="tour_has_track"; //se pasa el id de la tabla que relaciona track y tour
    $growtable="track";
    $columnas=array("idTourTrack"=>"idTourTrack","OrdTrack"=>"Orden","DescTrack"=>"Lugar","DateBegTrack"=>"Inicio","DateEndTrack"=>"Fin","OriTrack"=>"Origen","IntTrack"=>"Intermedio","DestTrack"=>"Destino");

    MDEItineraryDraw::getInstance()->DrawTable($title,$maintable,$growtable,$columnas,$idPackTour);
    CDrawMenuTour::getInstance()->rigth_side_end();
        
    echo "<p align='right'>";
    $bydays =  "MDEItinerary.php?codigo=$idPackTour";
    CDrawPageReg::getInstance()->DrawButton("Itinerario por tramos",$bydays);
    echo "</p>";
    


/** Seleccionar posicion de insercion del track dentro del tour*/
    
    $action="MDItineraryTemp.php?full=1";$name="formulario_registro";$method="post";$NAME="Nuevo track después de: ";
    MDItineraryEditDraw::getInstance()->DrawHead($action,$name,$method,$NAME);
    
    
    MDItineraryEditDraw::getInstance()->HiddenValue($idPackTour,"idPackTour");

    echo "<div id='dashboard_info'>";

    //$place_i = array("Al inicio"=>"0","Al final"=>"1","Despues de: "=>"2");
    //MDItineraryEditDraw::getInstance()->DrawRadioButton($place_i,"place_i");
    //Lista de extensiones
    
    MDItineraryEditDraw::getInstance()->DrawDays($idPackTour);
    echo "<p align='right'>";
    
    MDItineraryEditDraw::getInstance()->DrawSubmmit("Continuar");
    
    
    
    CDrawPageReg::getInstance()->DrawFoot();


CDrawPageReg::getInstance()->DrawButton("Ver default tours","MDTourGeneral/index.php?default=1");
   
CDrawMenuTour::getInstance()->DrawDivAdEnd();
    
    
?>